{#{% load static from staticfiles %}#}
{% load static%}

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">


<title>{% block title %}{% endblock %}</title>


  <link rel="stylesheet" href="{% static 'plugin/bootstrap/css/bootstrap.min.css' %}">
  <link rel="stylesheet" href="{% static 'plugin/font-awesome/css/font-awesome.min.css' %}">

 <style>
        .error-msg {
            color: red;
            position: absolute;
            font-size: 13px;
        }
    </style>

 {% block css %}{% endblock %}
</head>
<body>


<nav class="navbar navbar-default">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="{% url 'web_index' %}">Trance</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="#">产品功能 </a></li>
        <li><a href="#">企业方案</a></li>
        <li><a href="#">帮助文档</a></li>
        <li><a href="{% url 'web_price' %}">价格</a></li>

      </ul>

      <ul class="nav navbar-nav navbar-right">
        {% if request.tracer.user %}
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ request.tracer.user.username }} <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="{% url 'web_project_list' %}">管理中心</a></li>

            <li role="separator" class="divider"></li>
            <li><a href="{% url 'web_loginout' %}">退出</a></li>
          </ul>
        </li>
        {% else %}
         <li><a href="{% url 'web_login' %}">登 录</a></li>
        <li><a href="{% url 'web_register' %}">注 册</a></li>
        {% endif %}
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>



{% block content %}{% endblock %}

<script src="{% static 'js/jquery-3.4.1.min.js' %}" type="text/javascript"></script>
<script src="{% static 'plugin/bootstrap/js/bootstrap.min.js' %}" type="text/javascript"></script>

{% block js %}{% endblock %}
</body>
</html>